import request from '@/utils/request'

// 查询夹具列表
export function listClamps(query) {
  return request({
    url: '/equipment/scanner/list',
    method: 'get',
    params: query
  })
}

// 查询夹具详细
export function getClamps(clampId) {
  return request({
    url: `/equipment/scanner/${clampId}`,
    method: 'get'
  })
}

// 新增夹具
export function addClamps(data) {
  return request({
    url: '/equipment/scanner',
    method: 'post',
    data: data
  })
}

// 修改夹具
export function updateClamps(data) {
  return request({
    url: '/equipment/scanner',
    method: 'put',
    data: data
  })
}

// 删除夹具
export function delClamps(clampId) {
  return request({
    url: `/equipment/scanner/${clampId}`,
    method: 'delete'
  })
}
